package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.admin.dtos.NewsAuthDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.media.pojos.WmNews;
import com.heima.model.wemedia.vo.WmNewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WmNewsMapper extends BaseMapper<WmNews> {
    /**
     * 分页查询文章信息
     * @param dto
     * @return
     */
    public List<WmNewsVo> findListAndPage(@Param("dto") NewsAuthDto dto);


    public int findListCount(@Param("dto") NewsAuthDto dto);
}